package edu.pku.sei.autounit.plugin;

import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.jdt.core.IClasspathContainer;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.JavaCore;

import edu.pku.sei.autounit.Activator;

public class SimpleContainer implements IClasspathContainer{

	public final static Path ID = new Path("edu.pku.sei.JUNITGEN_CONTAINER");
	
	public IClasspathEntry[] getClasspathEntries() {
		IClasspathEntry [] ies = new IClasspathEntry[2];
		ies[0] = JavaCore.newLibraryEntry(new Path(Activator.getDefault().getPath()+"autounit.jar"), null, null);
		ies[1] = JavaCore.newLibraryEntry(new Path(Activator.getDefault().getPath()+"junit.jar"), null, null);
		return ies;
	}

	
	public String getDescription() {
		return "JUnit Generator Library";
	}

	
	public int getKind() {
		return IClasspathContainer.K_APPLICATION;
	}

	
	public IPath getPath() {
		return ID;
	}

}
